package com.example.cuilei.kblight.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;

import com.example.cuilei.kblight.activity.MyActivity;
import com.example.cuilei.kblight.util.CommonUtils;
import com.example.cuilei.kblight.util.LogUtils;
import com.example.cuilei.kblight.util.SwitchUtil;

/**
 * Created by Lay on 2014/12/10.
 */
public class BootReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        LogUtils.info("设备开机");
        CommonUtils.showToast(context, "即将为您关闭键盘灯");
        SwitchUtil.close(context);
    }
}
